package the_Crash;

public class Tuple<T> {
	
	private T first;
	private T second;
	
	 public Tuple(T x, T y) { 
	    this.first = x; 
	    this.second = y; 
	  }

	public T getFirst() {
		return first;
	}

	public T getSecond() {
		return second;
	} 
	 
	public boolean contains(T item){
		return this.second.equals(item)||this.first.equals(item);
	}

	@Override
	public String toString() {
		return "Tuple [first=" + first + ", second=" + second + "]";
	}
	 
	

}
